package presentation;

import java.util.Observable;
import java.util.Observer;

import entity.EuintRegister;

public class PBattReg implements Observer {
	public Long battreg;
	private boolean updated = false;
	
	public PBattReg()
	{
		battreg= (long) 0;
	}
	
	public boolean isUpdated()
	{
		return this.updated;
	}
	
	public void clearUpdated()
	{
		this.updated = false;
	}
	
	
	@Override
	public void update(Observable o, Object arg) {
		battreg = (long)Long.parseLong((String) arg, 2);
		updated = true;
		
	}

}
